<template>
  <div>
    <div class="enlist-e" v-for="(item, index) in eenlist[0]" :key="index">
      <div class="enlist-e-img">
        <img src="../../assets/setlist.png" alt="" />
      </div>
      <div class="enlist-e-text">
        <p>{{ item.wname }}</p>
        <p>{{ item.hr }} 2022-7-12 {{ item.wprice }}/天</p>
      </div>
      <div class="enlist-e-right">
        <p>待工作</p>
      </div>
    </div>
  </div>
</template>

<script>
import axios from "../../request";
export default {
  data() {
    return {
      eenlist: [],
    };
  },
  created() {
    axios.get("/api/api/part/all.do", { params: { type: 0 } }).then((res) => {
      //console.log(res.data.data);
      this.eenlist.push(res.data.data);
      //console.log(this.eenlist);
    });
  },
};
</script>

<style lang="scss">
.enlist-e {
  padding: 20px 50px;
  height: 120px;
  background-color: rgba(128, 128, 128, 0.103);
  margin-top: 30px;
  .enlist-e-img {
    float: left;
    margin: 30px 20px;
    img {
      width: 52px;
      height: 52px;
    }
  }
  .enlist-e-text {
    float: left;
    width: 360px;
    height: 100px;
    margin-top: 10px;
    margin-left: 40px;
    p:nth-child(1) {
      font-size: 24px;
      font-family: PingFang SC;
      font-weight: 500;
      color: #000000;
      line-height: 50px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    p:nth-child(2) {
      font-size: 20px;
      font-family: PingFang SC;
      font-weight: 400;
      color: #000000;
      line-height: 50px;
    }
  }
  .enlist-e-right {
    float: right;
    font-size: 26px;
    margin-top: 20px;
    font-family: PingFang SC;
    font-weight: 500;
    color: #ff8a00;
  }
}
</style>
